class Trunk extends Car
{
	float payload;
	Trunk(int wheels,float weight,int loader,float payload)
	{
		super(wheels,weight,loader);  //调用父类构造方法
		this.payload=payload;
	}
	public void show()
	{
		System.out.println("车型：卡车");
		super.show();     //调用父类方法
		System.out.println("载人："+loader+"人");
		System.out.println("载重量："+payload);
	}
}
